package com.ruoyi.project.wms.service.impl;

import java.util.List;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.common.zx.PageData;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wms.mapper.WmsWarehouseMapper;

/**
 * 仓库配置Service业务层处理
 *
 * @author zx
 * @date 2023-05-25
 */
@Service
public class WmsWarehouseServiceImpl extends BaseController
{
    @Autowired
    private WmsWarehouseMapper wmsWarehouseMapper;

    /**
     * 查询仓库配置
     *
     * @param id 仓库配置主键
     * @return pd
     */

    public PageData selectWmsWarehouseById(Long id){
        return wmsWarehouseMapper.selectWmsWarehouseById(id);
    }

    /**
     * 查询仓库配置列表
     *
     * @param pd
     * @return 仓库配置
     */

    public List<PageData> selectWmsWarehouseList(PageData pd){
        return wmsWarehouseMapper.selectWmsWarehouseList(pd);
    }

    /**
     * 新增仓库配置
     *
     * @param pd 仓库配置
     * @return 结果
     */
    public int insertWmsWarehouse(PageData pd){
        return wmsWarehouseMapper.insertWmsWarehouse(pd);
    }

    /**
     * 修改仓库配置
     *
     * @param pd 仓库配置
     * @return 结果
     */
    public int updateWmsWarehouse(PageData pd){
        return wmsWarehouseMapper.updateWmsWarehouse(pd);
    }


    public int deleteWmsWarehouseByIds(Long[] ids)
    {
        return wmsWarehouseMapper.deleteWmsWarehouseByIds(ids);
    }

    /**
     * 删除仓库配置信息
     *
     * @param id 仓库配置主键
     * @return 结果
     */
    public int deleteWmsWarehouseById(Long id){
        return wmsWarehouseMapper.deleteWmsWarehouseById(id);
    }
}
